#ifndef QUEENVIEW_H
#define QUEENVIEW_H

#include <QtGui/QGraphicsView>
#include "queenscene.h"
#include "boarditem.h"
#include <QObject>
#include <QResizeEvent>

class QueenView : public QGraphicsView
{
public:
	QueenView(QWidget* w = 0)
		:QGraphicsView(w),parentWindow(w)
	{
		this->sceneQueen = new QueenScene(0,0,400,400,this);
		this->sceneQueen->clear();
		this->setScene(this->sceneQueen);
		this->update();
		this->resize(400,400);
	}
	QueenScene* scene()const{return this->sceneQueen;}
	~QueenView()
	{
		delete sceneQueen;
	}
private:
	QueenScene* sceneQueen;
	QWidget* parentWindow;
protected:
};
#endif // QUEENVIEW_H
